﻿<UserControl x:Class="PDOGenerator.Views.TableView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    MinHeight="300" MinWidth="300">
    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBox" >
                <Setter Property="Margin" Value="2,2,2,2" />
            </Style>
            <Style TargetType="CheckBox" >
                <Setter Property="Margin" Value="2,2,2,2" />
            </Style>
            <Style TargetType="TextBlock" >
                <Setter Property="Margin" Value="2,2,2,2" />
            </Style>
        </Grid.Resources>
        
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <TextBlock FontWeight="Bold">Table</TextBlock>
                <TextBlock Text="{Binding TableName}" />
            </StackPanel>
            
            <StackPanel Orientation="Vertical" >
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock >Class Name:</TextBlock>
                    <TextBox Grid.Column="1" Text="{Binding Path=ClassName}" />
                </Grid>

                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock >Create Class:</TextBlock>
                    <CheckBox Grid.Column="1" IsChecked="{Binding Path=CreateClass}" />
                </Grid>

                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock >Enumeration:</TextBlock>
                    <CheckBox Grid.Column="1" IsChecked="{Binding Path=IsLookup}" />
                </Grid>

                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock >Alphabetize:</TextBlock>
                    <CheckBox Grid.Column="1" IsChecked="{Binding Path=AlphabetizeEnum}" />
                </Grid>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
